package com.zd.commodity.brandMng.biz.impl;

import java.util.List;
import java.util.Map;

import com.zd.commodity.biz.impl.BaseBiz;
import com.zd.commodity.brandMng.biz.IBrandShowBiz;
import com.zd.commodity.brandMng.dao.IBrandShowDao;
import com.zd.commodity.brandMng.entity.BrandShow;

public class BrandShowBizImpl extends BaseBiz<BrandShow> implements IBrandShowBiz {

	private IBrandShowDao brandShowDao;

	public IBrandShowDao getBrandShowDao() {
		return brandShowDao;
	}

	public void setBrandShowDao(IBrandShowDao brandShowDao) {
		this.brandShowDao = brandShowDao;
		this.setBaseDao(brandShowDao);
	}
	
	public List getBrandShowsByCategory(Class clasz,String sql,Map<String,String> argMap,int firstResult,int maxResults){
		return brandShowDao.getPagedListBySql(clasz, sql, argMap, firstResult, maxResults);
	}
	
	public Long getBrandShowsByCategoryCount(String sql,Map<String,String> argMap){
		return brandShowDao.getPagedListCountBySql(sql, argMap);
	}
	
}
